import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ai/` + url, ...arg)


export default {
	async list(data) {
		return await request(`list`, data, 'post')
	},
	async getById(data) {
		return await request(`get_by_id`, data, 'post')
	},
	async removeById(data) {
		return await request(`remove_by_id`, data, 'post')
	},
	async save(data) {
		return await request(`save`, data, 'post')
	},
	async setStatusFlag(data) {
		return await request(`set_status_flag`, data, 'post')
	},
}

